package chap6.p1;

public class Demo {
    public static void main(String[] args) {
        try {
            int age = Integer.parseInt("24L"); // 抛出异常
            System.out.println("打印 1");
        } catch (NumberFormatException e) {
            System.out.println("年龄请输入整数！");
            System.out.println("错误：" + e.getMessage());
        } finally {
            System.out.println("打印 2");
        }
        System.out.println("打印 3");
    }
}

